package cn.tedu.spring.eg1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by IntelliJ IDEA.
 *
 * @author zq
 * @version 1.0
 * @create 2024-08-02 14:17
 * @since jdk1.8
 */
public class TestProduct {
    public static void main(String[] args) {
        //创建Ioc容器
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext("cn.tedu.spring.eg1");
        //获取bean对象
        Product product = context.getBean(Product.class);
        System.out.println(product);
    }
}
